import Vue from 'vue'
import Router from 'vue-router'
import App from '../App'
/*import home from '@/components/yonghu/Home'
import yonghu_banli_shouye from '@/components/banli/yonghu_banli_shouye'
import yonghuwode from '@/components/wode/yonghu_wode'*/

Vue.use(Router);
const home = r => require.ensure([], () => r(require('../components/yonghu/Home')), 'home');
const yonghuwode = r => require.ensure([], () => r(require('../components/wode/yonghu_wode')), 'yonghuwode');
const yonghu_banli_shouye = r => require.ensure([], () => r(require('../components/banli/yonghu_banli_shouye')), 'yonghu_banli_shouye');


export default new Router({
  //mode:'history',
  routes: [
    /*首页*/
    {
      path: '/',
      name: 'home',
      component: home
    },
    /*办理*/
    {
      path: '/yonghu_banli_shouye',
      name: 'yonghu_banli_shouye',
      component: yonghu_banli_shouye
    },
    /*我的*/
    {
      path: '/yonghuwode',
      name: 'yonghuwode',
      component: yonghuwode
    }
  ]
})

